#!/usr/bin/env python
# -*- coding: utf8 -*-
# title       :
# description :
# author      :'ShenMeng'

from PySide import QtGui, QtCore
from ..pyuic.menuwidget import Ui_menu_widget

class MenuWidget(QtGui.QFrame):
    def __init__(self, parent=None):
        super(MenuWidget, self).__init__(parent)
        self._ui = Ui_menu_widget()
        self._ui.setupUi(self)
        self._parent = parent
        self._ui.save_btn.clicked.connect(self._parent.save_image)
        self._ui.cancle_btn.clicked.connect(self._parent.close)
        self._ui.menu_frame.setContentsMargins(6,0,0,0)
        self.setContentsMargins(0,0,0,0)
        self.setMinimumHeight(37)